package com.mentaleye.biz;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.multipart.MultipartFile;

import com.mentaleye.bean.StudentsBean;
import com.mentaleye.dal.model.Students;
import com.mentaleye.util.CommonPage;
import com.mentaleye.util.CommonResult;

public interface StudentsBiz {
	
    CommonResult insertData(StudentsBean dataBean);
	
    CommonResult insertByList(List<StudentsBean> beanList);
    
    CommonResult updateData(StudentsBean dataBean);
	
    CommonResult updateStateByMap(Map<String,Object> map);
    
    CommonResult deleteByKeyList(List<Integer> idList);
    
    CommonResult deleteByStuIdList(List<String> idList);

    Students getStudentById(Integer id);
    
	Map<String,Object> getStudentMapById(Integer id);
	
    List<Students> getList();
    
    List<StudentsBean> getBeanList();
    
    List<StudentsBean> getListBeanByIds(List<Integer> idList);
    
    List<Map<String,Object>> getMapByClassName(Map<String,Object> paramMap);

    void getListByPage(CommonPage page);
    
	CommonResult studentsToClass(Map<String,Object> paramMap);
	
	CommonResult studentChangeClass(Map<String,Object> paramMap);
	
	CommonResult StudentsDrop(Integer id);
	
	List<Students> getStuByRoleNo(Integer roleNo);

    List<StudentsBean> queryListByState(Integer state);
    
    CommonResult fileUpload(MultipartFile myfile, HttpServletRequest request);
    
    CommonResult excelImport(String filename, HttpServletRequest request);
}
